package com.example.test20log.config;


import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.concurrent.Executor;

/**
 * @Author: fxy
 * @Date: 2022/09/15/14:15
 * @Description:
 */
@Component
public class NacosListener implements ApplicationRunner {
    //@Resource
    //private ConfigService configService;

    @Resource
    private LogConfigListener logConfigListener;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        listenerNacosDatasource();
    }

    private void listenerNacosDatasource() throws Exception {
        //configService.addListener("waterwork-oa-local.yml", "DEFAULT_GROUP", logConfigListener);
    }

}
